package com.apexedu.portal.entity;

import javax.persistence.*;

/**
 * TUserMessagefactory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_USER_MESSAGEFACTORY", schema = "USR_MH_QH")
public class TUserMessagefactory implements java.io.Serializable {

	// Fields

	private String wid;
	private String messagename;
	private String code;
	private String querysql;
	private String applicablerole;
	private String shuom;
	private String state;
	private String accessurl;
	private String usrtype;

	// Constructors

	/** default constructor */
	public TUserMessagefactory() {
	}

	/** minimal constructor */
	public TUserMessagefactory(String wid) {
		this.wid = wid;
	}

	/** full constructor */
	public TUserMessagefactory(String wid, String messagename, String code, String querysql, String applicablerole,
			String shuom, String state) {
		this.wid = wid;
		this.messagename = messagename;
		this.code = code;
		this.querysql = querysql;
		this.applicablerole = applicablerole;
		this.shuom = shuom;
		this.state = state;
	}

	// Property accessors
	@Id
	@Column(name = "WID", unique = true, nullable = false, length = 50)
	public String getWid() {
		return this.wid;
	}

	public void setWid(String wid) {
		this.wid = wid;
	}

	@Column(name = "MESSAGENAME", length = 50)
	public String getMessagename() {
		return this.messagename;
	}

	public void setMessagename(String messagename) {
		this.messagename = messagename;
	}

	@Column(name = "CODE", length = 50)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "QUERYSQL", length = 2000)
	public String getQuerysql() {
		return this.querysql;
	}

	public void setQuerysql(String querysql) {
		this.querysql = querysql;
	}

	@Column(name = "APPLICABLEROLE", length = 200)
	public String getApplicablerole() {
		return this.applicablerole;
	}

	public void setApplicablerole(String applicablerole) {
		this.applicablerole = applicablerole;
	}

	@Column(name = "SHUOM", length = 200)
	public String getShuom() {
		return this.shuom;
	}

	public void setShuom(String shuom) {
		this.shuom = shuom;
	}

	@Column(name = "STATE", length = 1)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Column(name = "ACCESSURL", length = 200)
	public String getAccessurl() {
		return this.accessurl;
	}

	public void setAccessurl(String accessurl) {
		this.accessurl = accessurl;
	}

	@Transient
	public String getUsrtype() {
		return this.usrtype;
	}

	public void setUsrtype(String usrtype) {
		this.usrtype = usrtype;
	}
}